﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFSQLiteOneToManay
{
    [Table("InspRecord")]
    public class InspRecord : BaseDomain
    {
        public InspRecord() { }

        public string ID { get; set; }
        /// <summary>
        /// 1.操作员ID
        /// </summary>
        public string OperatorID { get; set; }
        /// <summary>
        /// 2.Pannel ID，条码二维码
        /// </summary>
        public string PannelID { get; set; }
        /// <summary>
        /// 3.批次号
        /// </summary>
        public string BatchID { get; set; }
        /// <summary>
        /// 4.型号名称
        /// </summary>
        public string ModelID { get; set; }
        /// <summary>
        /// 5.线体ID
        /// </summary>
        public string LineNO { get; set; }
        /// <summary>
        /// 6.设备ID
        /// </summary>
        public string EquipID { get; set; }
        /// <summary>
        /// 7.开始检测时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 8.检测耗时
        /// </summary>
        public int Duaration { get; set; }
        /// <summary>
        /// 9.检测结果
        /// </summary>
        public bool Result { get; set; }
        /// <summary>
        /// 10.结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 11.错误代码
        /// </summary>
        public string ErrCode { get; set; }

        public virtual ICollection<InspGroupRecord> Groups { get; set; }
    }
}
